AJAXHelper.prototype = new JQueryWrapper
AJAXHelper.prototype.constructor = AJAXHelper

function AJAXHelper() {
}

AJAXHelper.prototype.ajax = function(url, method, data, callback) {
	var requestContentType = "application/x-www-form-urlencoded";
	var responseContentType = "text/html";
	
	if (arguments.length == 5) {
		responseContentType = arguments[4];
	} else if (arguments.length == 6) {
		requestContentType = arguments[4];
		responseContentType = arguments[5];
	}
	
	jQuery.ajax( {
		"url" : url,
		"type" : method,
		"data" : data,
		"success" : callback,
		"dataType" : responseContentType,
		"contentType" : requestContentType
	});
};